package com.nchuAo.controller;

import com.nchuAo.util.Response;
import com.nchuAo.service.ClassesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/classes")
public class ClassesController {
	@Autowired
	private ClassesService classesService;
	@GetMapping("/list")
	public Response list(){
		return Response.ok().data("list",classesService.list());
	}
}
